package com.shiyo.spring.basic_di.a_setter.config;

import com.shiyo.spring.basic_di.a_setter.bean.Cat;
import com.shiyo.spring.basic_di.a_setter.bean.Person;
import com.shiyo.spring.basic_dl.d_withanno.anno.Color;
import org.springframework.context.annotation.Bean;

@Color
public class BeanConfig {
    @Bean
    public Cat cat() {
        return new Cat("mimi", new Person("shiyo", 18));
    }
}
